<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/res/common/taglibs.jsp" %>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter"%>
<%@ page import="org.springframework.security.ui.webapp.AuthenticationProcessingFilter"%>
<%@ page import="org.springframework.security.AuthenticationException"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${site}登录页</title>
<%@ include file="/res/common/meta.jsp" %>
<!-- link href="${ctx}/res/css/" type="text/css" rel="stylesheet"  -->
<script src="${ctx}/res/js/jquery-1.2.6.js" type="text/javascript"></script>
<script src="${ctx}/res/js/login.js" type="text/javascript"></script>
</head>
<body>
	<%
		if (session.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null) {
	%>
			<span style="color:red"> 登录失败，请重试.</span>
	<%
		}
	%>

<form action="${ctx}/j_spring_security_check" method="post">
<input name="j_username" type="text" <s:if test="not empty param.error"> value='<%=session.getAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY)%>'</s:if> />
<input name="j_password" type="password"/>
<input name="_spring_security_remember_me" type="checkbox"/>
<input value="提交" type="submit"/>
</form>

<!-- 
<s:form action="login!login" theme="simple">
<s:textfield name="loginName"/>
<s:password name="password"/>
<s:submit value="登录"/>
</s:form>
<s:property value="exception.message"/>
<s:property value="message"/>
 -->

</body>
</html>